package com.csnf.service;

import com.csnf.dao.UserDao;
import com.csnf.entity.User;

import java.sql.SQLException;
import java.util.List;

public class UserService {
    UserDao userDao = new UserDao();
    public List<User> getAll() throws SQLException {
        return userDao.getAll();
    }
    public List<User> getUserByNickName(String nickName) throws SQLException{
        return userDao.getUserByNickName(nickName);
    }
    public User getUserById(Integer user_id) throws Exception {
        return userDao.getUserById(user_id);
    }
<<<<<<< HEAD


    public Boolean updateUser(User user) throws SQLException {
=======
    public Boolean updateUser(User user) throws Exception {
>>>>>>> 5aa45f37017317eab5fa2db69f1886b15cf81eb1
        return userDao.updateUser(user);
    }
}
